<?php
/**
 * Business.php
 * Author: luoji (867404364@qq.com)
 * Date: 2020-12-19
 * Time: 11:07
 */

namespace App\Tables;


class Business extends Base
{

    const COUNT_TYPE_1 = 1;
    const COUNT_TYPE_2 = 2;
    const COUNT_TYPE_3 = 3;

    public function consumables()
    {
        return $this->hasMany(BusinessConsumable::class, 'bid', 'id');
    }

    public function postPrints()
    {
        return $this->hasMany(BusinessPostPrint::class, 'bid', 'id');
    }

    public function priceNotices()
    {
        return $this->hasMany(BusinessPriceNotice::class, 'bid', 'id');
    }
}